package com.neighbor.neighborhooduser.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 帖子评论表
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Getter
@Setter
@TableName("post_comments")
public class PostComments {

    /**
     * 评论唯一ID
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 帖子ID
     */
    @TableField("post_id")
    private Integer postId;

    /**
     * 评论者ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 评论内容
     */
    @TableField("content")
    private String content;

    /**
     * 点赞数
     */
    @TableField("is_accepted")
    private Integer isAccepted;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @TableField("created_at")
    private Date createdAt;

    @TableField(exist = false)
    private Users user;
    @TableField("father_comment_id")
    private Integer fatherCommentId;

}
